package ch3;

public class StrTest {
	// valueOf
	public static void main(String[] args) {
		String str = new String("hello,java");
		System.out.println(str);
		String s2 = new String(new byte[] { 65, 66, 67 });
		System.out.println(s2);
		String s3 = new String(new char[] { 21016, 21015, 21017 });
		System.out.println(s3);
		String s4 = new String(str);
		System.out.println(s4);
		s4 = s4 + ",xsss";
		s4 = s4 + Math.PI;
		s4 = s4 + (24 + 10);
		System.out.println(s4);
		String s5 = String.valueOf(Math.E);
		System.out.println(s5);
	}

}
